﻿using System;
using System.Collections.Generic;
using System.Text;
using SimpleQueueingSystem.Interfaces;
using SimpleQueueingSystem.Enums;

namespace SimpleQueueingSystem.Requests.Implementation
{
    [Serializable]
    public class ClaimRequest : IRequest
    {
        public ClaimRequest()
        {
            requestType = RequestType.Claim;
            processingStatus = "None";
        }

        private RequestType requestType;
        public RequestType RequestType
        {
            get { return requestType; }
        }

        private string processingStatus;
        public void Process()
        {
            //Console.WriteLine("Processing request:{0}", requestType);
            processingStatus = "Processed.";
        }

        private int ticketNo;
        public int TicketNo
        {
            get { return ticketNo; }
            set { ticketNo = value; }
        }


        public string GetTicketInformation()
        {
            return string.Format("{0}-{1}", requestType.ToString(), ticketNo.ToString());
        }


        public string GetProcessingStatus()
        {
            return processingStatus;
        }
    }
}
